//
//  GGHttpRequest.h
//  DDLock
//
//  Created by ios on 2017/12/26.
//  Copyright © 2017年 saiyi. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, kRequestType) {
    kRequestType_GET,
    kRequestType_POST
};

@interface GGHttpRequest : NSObject

+ (instancetype)shareRequest;

+ (void)httpRequestType:(kRequestType)type path:(NSString *)path progressHUD:(BOOL)hud parameters:(id)pam success:(void(^)(id request))resObject failure:(void(^)(NSError *error))resError;

@end
